#define _CRT_SECURE_NO_WARNINGS 1
#include "mystring.h"
using namespace mystring;
void test1()
{
	string s1("xxxxxxxxx");
	string s2(s1);
	string s3;
	std::cout << s3.empty() << std::endl;
	s3 = s2;
	std::cout << s3.empty() << std::endl;
}
void test2()
{
	string s1("xx");
	s1.push_back('a');
	s1.append("bbb");
	s1.resize(10,'c');
	std::cout << s1 << std::endl;
	std::cin >> s1;
	std::cout << s1 << std::endl;
}
void test3()
{
	string s1("aaa");
	string s2("aa");
	int ret = s1 <= s2;
	std::cout << ret << std::endl;
}
void test4()
{
	string s1("abcdefg");
	std::cout << s1.find('d') << std::endl;
	std::cout << s1.find("cde") << std::endl;
}
void test5()
{
	string s1("abcdefg");
	s1.insert(0, '3');
	std::cout << s1 << std::endl;
	s1.insert(3, "000");
	std::cout << s1 << std::endl;
	s1.erase(2,5);
	std::cout << s1 << std::endl;
}
int main()
{
	test1();
	test2();
	test3();
	test4();
	test5();

	return 0;
}